<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset='UTF-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script src='../vue.js'></script>
</head>
<body>
    <div id='app'>
        <input type="checkbox" value="上海" v-model="msg">上海
        <input type="checkbox" value="广东" v-model="msg">广东
        <input type="checkbox" value="青岛" v-model="msg">青岛
        <br>
        <select name="food" v-model="msg">
            <option value="鸡蛋" >鸡蛋</option>
            <option value="鱼" >鱼</option>
            <option value="肉" >肉</option>
        </select>
        <br>
        <br>
        <br>
        <select name="food" multiple v-model="city">
            <option value="北京" >北京</option>
            <option value="上海" >上海</option>
            <option value="郑州" >郑州</option>
        </select>
    </div>

    <script>
        Vue.config.productionTip = false;

        const vm = new Vue({
            el : '#app',
            data(){
                return {
                    msg : '鸡蛋',
                    city:[]
                }
            }
        })
    </script>
</body>
</html>